package com.badu.common.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ServerErrorEnum {

	LACK_PARAM(101,"缺少参数"),
	
	NO_DATA(100,"没有数据"),
	
	REQUEST_ERROR(102,"请求方式错误"),
	
	SERVER_ERROR(500,"服务器内部错误"),
	
	NO_AUTH(403,"没有授权"),
	
	SQL_ERROR(501,"sql语句异常，请联系管理员"),
	
	USER_NONENTITY(601,"用户不存在"),
	
	INVALID_REGISTER_CODE(602,"无效的邀请码");
	
	private int code;
    private String value;
	
}
